#container{
    margin: 50px auto;  /*容器div左右居中*/
    width: 1150px;
    height: 600px;
}

#nav-list{
    width: 240px;
    height: 600px;
    border: 1px solid cornflowerblue;
    background-color: #e0e0e0;
}

/*导航的标题*/
#nav-list h2{
    height: 32px;
    line-height: 32px;
    font-size:14px;
    text-align: center;
    background-color: cornflowerblue;
    color: white;
}

/*导航的菜单*/
#nav-list ul li{
    height: 45px;
    line-height: 45px;
    font-size: 14px;
}

#nav-list ul li a{
    display: block;  /*a标签变成块状元素，这样才能设置宽高！！*/
    height: 45px;
    line-height: 45px;
    text-align: center;
}

#nav-list ul li a:hover{
    background-color: #aaaaaa;
}

#main-div{
    width: 900px;
    height: 600px;
    border: 1px solid cornflowerblue;
}

#main-div h1{
    text-align: center;
    height: 600px;
    line-height: 600px;
}

#main-div h2{
    height: 32px;
    line-height: 32px;
    text-align: center;
    background-color: cornflowerblue;
    color: white;
    font-size: 14px;
}

